/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Azucena
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        Tree tree = new Tree();

        tree.Insert(5, "HOLA");
        tree.Insert(7, "ADIOS");
        tree.Insert(9, "hi");
        tree.Insert(12, "BYE");
        tree.Insert(14, "HELLO");
        tree.Insert(16, "WORLD");
        tree.Insert(18, "ASUCENA");
        

        Nodo Search = tree.Search(2);
        if(Search != null)
            System.out.println("El Nodo es:  " + Search.getData());
        else
            System.out.println("No se encontro el Nodo");
       

    }

}

